home *** CD-ROM | disk | FTP | other *** search
- /*
- ### procedure for selecting a helping option ###
-
- */
-
- #include <suntool/sunview.h>
- #include <suntool/textsw.h>
- #include <suntool/panel.h>
-
- void
- help_option_proc(item,value,event)
- Panel_item item;
- int value;
- Event *event;
- {
- extern Textsw help_textsw;
- extern Textsw_status help_status;
- extern int help_option;
- extern char string[],help_dir[];
-
- help_option = value;
- sprintf(string,"%s/online_help.%d",help_dir,help_option);
- window_set(help_textsw,
- TEXTSW_STATUS, &help_status,
- TEXTSW_FILE,string,
- TEXTSW_FIRST,0,
- 0);
- if(help_status == TEXTSW_STATUS_CANNOT_OPEN_INPUT){
- sprintf(string,"Help file (%s/%d) does not exist!\n",help_dir,help_option);
- system_mess_proc(1,string);
- }
- }
-